#include <iostream>
#include <unistd.h>
#include <signal.h>
using namespace std;

void usage(string procname)
{
    cout << "Usage: " << procname << " sigid pid" << endl;
}

// ./mykill sigid pid
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        usage(argv[0]);
        exit(1);
    }
    int sigid = stoi(argv[1]);
    pid_t pid = stoi(argv[2]);

    kill(pid, sigid);

    return 0;
}